@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
@Validated
@Tag(name = "Hello", description = "Hello API")
public interface HelloApi {
default HelloApiDelegate getDelegate() {
return new HelloApiDelegate() {};
}
/**
* GET /api/v1/hello/{name} : Saluer une personne en particulier
*
* @param name Nom de la personne à saluer (required)
* @return OK (status code 200)
* or Mauvaise requête, 123 n'est pas une valeurs valide (status code 400)
* or Unauthorized (status code 401)
* or Forbidden (status code 403)
* or Not Found (status code 404)
*/
@Operation(
operationId = "helloUsingGET",
summary = "Saluer une personne en particulier",
tags = { "hello" },
responses = {
@ApiResponse(responseCode = "200", description = "OK", content = {
@Content(mediaType = "application/json", schema = @Schema(implementation = HelloDto.class))
}),
@ApiResponse(responseCode = "400", description = "Mauvaise requête, 123 n'est pas une valeurs valide"),
@ApiResponse(responseCode = "401", description = "Unauthorized"),
@ApiResponse(responseCode = "403", description = "Forbidden"),
@ApiResponse(responseCode = "404", description = "Not Found")
}
)
@RequestMapping(
method = RequestMethod.GET,
value = "/api/v1/hello/{name}",
produces = { "application/json" }
)
default ResponseEntity<HelloDto> helloUsingGET(
@Pattern(regexp = "^[a-zA-Z0-9 ,.'-]+$") @Size(min = 2, max = 25) @Parameter(name = "name", description = "Nom de la personne à saluer", required = true) @PathVariable("name") String name
) {
return getDelegate().helloUsingGET(name);
}
/**
* GET /api/v1/hello : Saluer le monde
*
* @return OK (status code 200)
* or Unauthorized (status code 401)
* or Forbidden (status code 403)
* or Not Found (status code 404)
*/
@Operation(
operationId = "helloUsingGET1",
summary = "Saluer le monde",
tags = { "hello" },
responses = {
@ApiResponse(responseCode = "200", description = "OK", content = {
@Content(mediaType = "application/json", schema = @Schema(implementation = HelloDto.class))
}),
@ApiResponse(responseCode = "401", description = "Unauthorized"),
@ApiResponse(responseCode = "403", description = "Forbidden"),
@ApiResponse(responseCode = "404", description = "Not Found")
}
)
@RequestMapping(
method = RequestMethod.GET,
value = "/api/v1/hello",
produces = { "application/json" }
)
default ResponseEntity<HelloDto> helloUsingGET1(
) {
return getDelegate().helloUsingGET1();
}
}